package com.source.baseData.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.source.baseData.vo.ToMarketGraphVO;
import com.source.baseData.entity.ToMarket;
import com.baomidou.mybatisplus.extension.service.IService;
import com.source.baseData.vo.ToMarketVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Feng
 * @since 2021-02-12
 */
public interface ToMarketService extends IService<ToMarket> {

    List<ToMarketVO> find(int status);

    Page<ToMarketVO> find(int status, int current, int size);

    List<ToMarketVO> find(String province, String city, String district);

    Page<ToMarketVO> find(String province, String city, String district, int current, int size);

    List<ToMarketVO> findBySlaughterHouseName(String name);

    Page<ToMarketVO> findBySlaughterHouseName(String name, int current, int size);

    List<ToMarketVO> findByStallName(String name);

    Page<ToMarketVO> findByStallName(String name, int current, int size);

    boolean add(ToMarket toMarket);

    boolean modify(ToMarket toMarket);

    boolean deleteById(String id);

    boolean deleteBatch(String ids);

    List<String> getCities(String Province);

    List<String> getDistricts(String Province, String city);

    boolean updateBatchStatusByIds(int status, String ids);

    List<ToMarketVO> like(String str);

    Page<ToMarketVO> like(String str, int current, int size);

    ToMarketGraphVO getPastHalfYearStallNums(String slaughterHouseId);

    List<ToMarketVO> findMarketByDistrictId(String name);

    List<ToMarketVO> toBeReviewed();

    Page<ToMarketVO> toBeReviewed(int current, int size);

    List<ToMarketVO> toBeReviewedLike(String word);

    Page<ToMarketVO> toBeReviewedLike(String word, int current, int size);

    ToMarketVO findById(String id);
}
